/**
 * 
 */
package com.wlstock.funi.model;

import java.sql.Date;

import org.json.JSONObject;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * @author admin
 * 
 */

@DatabaseTable(tableName = "tb_tracktrademodel")
public class TrackTradeModel extends BaseModel{
	@DatabaseField(generatedId = true)
	private int id ;
	@DatabaseField(columnName = "StockName")
	private String StockName; // 证券名字
	@DatabaseField(columnName = "StockNo")
	private String StockNo; // 证券号码
	@DatabaseField(columnName = "fundName")
	private String fundName; // 操盘手名
	@DatabaseField(columnName = "FundId")
	private String FundId; // 操盘手id
	@DatabaseField(columnName = "Remark")
	private String Remark; // 交易类型显示
	@DatabaseField(columnName = "TradeType")
	private String TradeType; // 交易类型
	@DatabaseField(columnName = "TradePrice")
	private String TradePrice; // 交易价格
	@DatabaseField(columnName = "TradedDate")
	private Date TradedDate; // 交易时间
	@DatabaseField(columnName = "CreatedTime")
	private Date CreatedTime; // 服务器记录创建时间
	@DatabaseField(columnName = "upDateTime")
	private Date upDateTime; // 从服务器上拉下来的时间
	@DatabaseField(columnName = "StockHoldDetailID")
	private String StockHoldDetailID;
	@DatabaseField(columnName = "CustomerId")
	private String CustomerId;
	@DatabaseField(columnName = "Season")
	private String Season;
	@DatabaseField(columnName = "StockHoldID")
	private String StockHoldID;
	@DatabaseField(columnName = "TradeQuantity")
	private String TradeQuantity;
	@DatabaseField(columnName = "TradeAmount")
	private String TradeAmount;
	@DatabaseField(columnName = "StockAmount")
	private String StockAmount;
	@DatabaseField(columnName = "Commission")
	private String Commission;
	@DatabaseField(columnName = "TransferFee")
	private String TransferFee;
	@DatabaseField(columnName = "StampDuty")
	private String StampDuty;
	@DatabaseField(columnName = "StockAvgPrice")
	private String StockAvgPrice;
	@DatabaseField(columnName = "RealProfit")
	private String RealProfit;
	@DatabaseField(columnName = "AmountIn")
	private String AmountIn;
	@DatabaseField(columnName = "Balance")
	private String Balance;
	@DatabaseField(columnName = "Weight")
	private String Weight;
	@DatabaseField(columnName = "FormaDateTimeToStr")
	private String FormaDateTimeToStr;
	@DatabaseField(columnName = "Treadedtime")
	private String Treadedtime;
	@DatabaseField(columnName = "TradedHourMinute")
	private String TradedHourMinute;

	
	public int getId() {
		return id!=0?id:0;
	}


	public void setId(int id) {
		this.id = id;
	}


	public String getStockName() {
		return StockName!=null?StockName:"";
	}


	public void setStockName(String stockName) {
		StockName = stockName;
	}


	public String getStockNo() {
		return StockNo!=null?StockNo:"";
	}


	public void setStockNo(String stockNo) {
		StockNo = stockNo;
	}


	public String getFundName() {
		return fundName!=null?fundName:"";
	}


	public void setFundName(String fundName) {
		this.fundName = fundName;
	}


	public String getFundId() {
		return FundId!=null?FundId:"";
	}


	public void setFundId(String fundId) {
		FundId = fundId;
	}


	public String getRemark() {
		return Remark!=null?Remark:"";
	}


	public void setRemark(String remark) {
		this.Remark = remark;
	}


	public String getTradeType() {
		return TradeType!=null?TradeType:"";
	}


	public void setTradeType(String tradeType) {
		TradeType = tradeType;
	}


	public String getTradePrice() {
		return TradePrice!=null?TradePrice:"";
	}


	public void setTradePrice(String tradePrice) {
		TradePrice = tradePrice;
	}


	public Date getTradedDate() {
		return TradedDate;
	}


	public void setTradedDate(Date tradedDate) {
		TradedDate = tradedDate;
	}


	public Date getCreatedTime() {
		return CreatedTime;
	}


	public void setCreatedTime(Date createdTime) {
		this.CreatedTime = createdTime;
	}


	public Date getUpDateTime() {
		return upDateTime;
	}


	public void setUpDateTime(Date upDateTime) {
		this.upDateTime = upDateTime;
	}


	public String getStockHoldDetailID() {
		return StockHoldDetailID!=null?StockHoldDetailID:"";
	}


	public void setStockHoldDetailID(String stockHoldDetailID) {
		StockHoldDetailID = stockHoldDetailID;
	}


	public String getCustomerId() {
		return CustomerId!=null?CustomerId:"";
	}


	public void setCustomerId(String customerId) {
		CustomerId = customerId;
	}


	public String getSeason() {
		return Season!=null?Season:"";
	}


	public void setSeason(String season) {
		Season = season;
	}


	public String getStockHoldID() {
		return StockHoldID!=null?StockHoldID:"";
	}


	public void setStockHoldID(String stockHoldID) {
		StockHoldID = stockHoldID;
	}


	public String getTradeQuantity() {
		return TradeQuantity!=null?TradeQuantity:"";
	}


	public void setTradeQuantity(String tradeQuantity) {
		TradeQuantity = tradeQuantity;
	}


	public String getTradeAmount() {
		return TradeAmount!=null?TradeAmount:"";
	}


	public void setTradeAmount(String tradeAmount) {
		TradeAmount = tradeAmount;
	}


	public String getStockAmount() {
		return StockAmount!=null?StockAmount:"";
	}


	public void setStockAmount(String stockAmount) {
		StockAmount = stockAmount;
	}


	public String getCommission() {
		return Commission!=null?Commission:"";
	}


	public void setCommission(String commission) {
		Commission = commission;
	}


	public String getTransferFee() {
		return TransferFee!=null?TransferFee:"";
	}


	public void setTransferFee(String transferFee) {
		TransferFee = transferFee;
	}


	public String getStampDuty() {
		return StampDuty!=null?StampDuty:"";
	}


	public void setStampDuty(String stampDuty) {
		StampDuty = stampDuty;
	}


	public String getStockAvgPrice() {
		return StockAvgPrice!=null?StockAvgPrice:"";
	}


	public void setStockAvgPrice(String stockAvgPrice) {
		StockAvgPrice = stockAvgPrice;
	}


	public String getRealProfit() {
		return RealProfit!=null?RealProfit:"";
	}


	public void setRealProfit(String realProfit) {
		RealProfit = realProfit;
	}


	public String getAmountIn() {
		return AmountIn!=null?AmountIn:"";
	}


	public void setAmountIn(String amountIn) {
		AmountIn = amountIn;
	}


	public String getBalance() {
		return Balance!=null?Balance:"";
	}


	public void setBalance(String balance) {
		Balance = balance;
	}


	public String getWeight() {
		return Weight!=null?Weight:"";
	}


	public void setWeight(String weight) {
		Weight = weight;
	}


	public String getFormaDateTimeToStr() {
		return FormaDateTimeToStr!=null?FormaDateTimeToStr:"";
	}


	public void setFormaDateTimeToStr(String formaDateTimeToStr) {
		FormaDateTimeToStr = formaDateTimeToStr;
	}


	public String getTreadedtime() {
		return Treadedtime!=null?Treadedtime:"";
	}


	public void setTreadedtime(String treadedtime) {
		Treadedtime = treadedtime;
	}


	public String getTradedHourMinute() {
		return TradedHourMinute!=null?TradedHourMinute:"";
	}


	public void setTradedHourMinute(String tradedHourMinute) {
		TradedHourMinute = tradedHourMinute;
	}


	public static TrackTradeModel buildTradeModel(JSONObject obj) {
		TrackTradeModel model = new TrackTradeModel();
		
		return null;
	}

	// "StockHoldDetailID": 6803,
	// "CustomerId": 94246,
	// "StockNo": "600485",
	// "StockName": "信威集团",
	// "Season": 43,
	// "StockHoldID": 3046,
	// "TradedDate": "2015-10-21T13:33:12",
	// "TradeType": 0,
	// "TradeQuantity": 15100,
	// "TradePrice": 22.34,
	// "TradeAmount": 337334,
	// "StockAmount": 0,
	// "Commission": 337.33,
	// "TransferFee": 15.1,
	// "StampDuty": 337.33,
	// "StockAvgPrice": 20.95,
	// "RealProfit": 20299.24,
	// "AmountIn": 336644.24,
	// "Balance": 338871.69,
	// "AvailableSaleDate": null,
	// "Remark": "清仓",
	// "CreatedTime": "2015-10-21T13:36:03.14",
	// "Weight": 60,
	// "fundName": "热短8号",
	// "FormaDateTimeToStr": "今日",
	// "Treadedtime": null,
	// "FundId": 8,
	// "TradedHourMinute": "13:33"
}
